package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 数据字典-拜访目的
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/26 10:19
 * @since v1.0
 */
@Getter
public enum CommunicatePlanTargetEnum {

    // 拜访目的
    BUILD_CUSTOMER("1", "enum.communicatePlanTarget.name.build_customer", "buildCustomer"),
    COLLECT_CUSTOMER_INFO("2", "enum.communicatePlanTarget.name.collect_customer_info", "collectCustomerInfo"),
    UNDERSTAND_CUSTOMER_NEEDS("3", "enum.communicatePlanTarget.name.understand_customer_needs", "understandCustomerNeeds"),
    PROGRAM_COMMUNICATION("4", "enum.communicatePlanTarget.name.program_communication", "ProgramCommunication"),
    BUSINESS_NEGOTIATION("5", "enum.communicatePlanTarget.name.business_negotiation", "businessNegotiation"),
    PROMOTION_ORDER("6", "enum.communicatePlanTarget.name.promotion_order", "promotionOrder"),
    SIGNING("7", "enum.communicatePlanTarget.name.signing", "signing"),
    CUSTOMER_SERVICE("8", "enum.communicatePlanTarget.name.customer_service", "customerService"),
    ;

    private String code;
    private String name;
    private String attr;

    CommunicatePlanTargetEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
